<?php
session_start();
define('HH','http://'.$_SERVER['HTTP_HOST'].'/');

require DR.'/include/fun.php';
require DR.'/include/front_fun.php';
require DR.'/include/front_action.php';

/*加载必要的系统信息*/
$sysinfo = loadData('sysinfo.php');

$nav=$_SERVER['REQUEST_URI'];
$nav=str_replace('.html','',$nav);
$script=$_SERVER['SCRIPT_NAME'];
$nav=str_replace($script,'',$nav);
$vars=explode("/",substr($nav,1));

if(!empty($vars[0])&&!empty($vars[1])){
	$action = $vars[0];
	$method = $vars[1];
	$act = loadAction($action);
	$param = '';
	for($i=2;$i<sizeof($vars);$i++){
		$param .=',$vars['.$i.']';
	}
	$param = substr($param,1);
	eval('$act->$method('.$param.');');
}else{
	$welcome = loadAction('Welcome');
	$welcome->index();
}


















